package com.sx.user.dao;

import com.sx.user.entity.Token;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author shengx
 * @date 2020/5/14 21:38
 */
@Repository
public interface TokenRepository extends JpaRepository<Token, Integer>, CrudRepository<Token, Integer> {
    List<Token> findByToken(String email);
}
